package com.lineage.server.serverpackets;

public class S_PacketBoxTest extends ServerBasePacket {
  private byte[] _byte;
  
  public S_PacketBoxTest() {
    this._byte = null;
    writeC(250);
    writeC(82);
    writeC(150);
    writeC(0);
    writeC(0);
    writeC(0);
  }
  
  public S_PacketBoxTest(byte ocid, int time) {
    this._byte = null;
    writeC(250);
    writeC(ocid);
    writeC(time);
    writeC(0);
    writeC(0);
    writeC(0);
  }
  
  public S_PacketBoxTest(int type, int time) {
    this._byte = null;
    writeC(250);
    writeC(type);
    writeH(time);
    writeH(0);
  }
  
  public S_PacketBoxTest(int value, String[] clanName) {
    this._byte = null;
    writeC(250);
    writeC(value);
    int i = 0;
    while (i < value) {
      writeS(clanName[i]);
      i++;
    } 
  }
  
  public S_PacketBoxTest(int time) {
    this._byte = null;
    writeC(250);
    writeC(79);
    writeC(2);
    writeS("TEMP");
    writeS("AASS");
  }
  
  public S_PacketBoxTest(byte[] bs) {
    this._byte = null;
    int length = bs.length;
    int i = 0;
    while (i < length) {
      byte outbs = bs[i];
      writeC(outbs);
      i++;
    } 
  }
  
  public byte[] getContent() {
    if (this._byte == null)
      this._byte = getBytes(); 
    return this._byte;
  }
  
  public String getType() {
    return getClass().getSimpleName();
  }
}
